Include files in IDL are .PRO files that contain IDL code and are designed to be included within other programs at compile time.
You can include these files within your routines using the @ character. For example, assume you have a file named myroutine.pro containing the following statements:
PRO myroutine
...code...
@myinclude.pro
...more code...
end
When IDL compiles myroutine.pro, it will automatically read in all of the IDL code within myinclude.pro and embed it within the program, just as if the code had been directly included within myroutine. When the end of the file is reached, compilation resumes at the line after the @.
If the include statement does not contain a file extension, IDL searches the current working directory and the directories specified by !PATH for a file with the file extension .pro. If the file is not found in a given directory, IDL searches for the file with no extension. If the file includes a full path specification, IDL does not search the directories in !PATH.
Overview of IDL Program Types, Batch Files, Special Characters